<div class="bjui-pageContent">
    <table class="table table-bordered" id="datagrid-branch-list" data-toggle="datagrid" data-options="{
        height: '100%',
        gridTitle : '客户列表',
        {{--editMode: {dialog:{id:'branch-custom-save', url:'/admin/branch/custom-save', type:'get', title:'板添加', width:700, height:500}},--}}
        local: 'remote',
        showToolbar: true,
        toolbarItem:'add',
        dataUrl: '/admin/branch/list',
        postData:{'plate_id':{{$plateId}} },
        editUrl: '/admin/branch/save?plate_id={{$plateId}}',
        delUrl: '/admin/branch/del',
        delPK: 'id',
        linenumberAll: true,
        sortAll: false,
        contextMenuH: true,
        contextMenuB: true,
        showCheckboxcol: true,
        inlineEditMult: true,
        paging: {showPagenum:10, selectPageSize:'20,50,100', pageCurrent:1, pageSize:20},
        customEditbtns: {width:200,position:'replace'},
        fullGrid: true,
        {{--fieldSortable: false,--}}
         showEditbtnscol: '操作',
        sortAll:true,
        filterThead: false,
        columnMenu: false,
}">
        <thead>
        <tr>
            <th data-options="{name:'branch_name',align:'center',width:100}">支名称</th>
            <th data-options="{name:'sort_id',align:'center',width:100}">排序</th>
            <th data-options="{name:'repair_info',align:'center',width:100}">维修信息</th>
            <th data-options="{name:'remark',align:'center',width:100}">备注</th>
            {{--<th data-options="{align:'center',render:manage}">操作</th>--}}
        </tr>
        </thead>
    </table>
</div>
<script>
    function create_img_tag(value){
        return '<img src="'+value+'" width="100" height="100">';
    }
    function manage(){
        var html = '<button type="button" class="btn-green" data-toggle="edit.datagrid.tr">编辑</button>'
                + '<button type="button" class="btn-red" data-toggle="del.datagrid.tr">删除</button>'
        return html

    }
</script>